package com.czxy.client;

import com.czxy.pojo.User;
import org.springframework.http.ResponseEntity;

/**
 * @author 张青卯
 */
public class UserClientFallback implements UserClient {
    /**
     * 熔断查询用户信息
     * @param mobile 手机号
     * @param password 密码
     * @return 假的用户信息
     */
    @Override
    public ResponseEntity<User> findUserByMobile(String mobile, String password) {
        User user = new User();
        user.setId(-100);
        return ResponseEntity.ok(user);
    }
}
